<script lang="ts">
import { defineComponent } from "vue";
import { useRouter } from "vue-router";
export default defineComponent({
  components: {},
  setup() {
    const router = useRouter();
    return { router };
  },
});
</script>

<template>
  <div class="refund_wrap">
    <div class="top">
      <img src="../assets/img/checked.png" alt="图片加载失败" />
      <div class="refund_word">退款金额</div>

      <div class="refund_number">
        <span class="text_3">¥</span>
        <span class="text_4"> {{ router.currentRoute.value.query.price }}</span>
      </div>
    </div>

    <div class="refund_tip">
      <div class="message">
        <div class="text_5">
          你的退款已领取成功，请留意你的微信钱包查收款如你24
        </div>
        <div class="text_6 text_5">
          小时内仍未收到退款，请联系客服
          <span>{{ router.currentRoute.value.query.phoneNumber }}</span>
        </div>
      </div>
    </div>
  </div>
</template>
<style lang="less" scoped>
.refund_wrap {
  .top {
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    > img {
      width: 80px;
      height: 80px;
    }
    .refund_word {
      overflow-wrap: break-word;
      color: rgba(102, 102, 102, 1);
      font-size: 15px;
      text-align: center;
      white-space: nowrap;
      line-height: 21px;
      margin: 15px 0;
    }
    .refund_number {
      .text_3 {
        overflow-wrap: break-word;
        color: rgba(64, 193, 127, 1);
        font-size: 22px;
        font-family: PingFangSC-Semibold;
        font-weight: 600;
        text-align: right;
        white-space: nowrap;
        line-height: 40px;
        margin-top: 3px;
      }

      .text_4 {
        overflow-wrap: break-word;
        color: rgba(64, 193, 127, 1);
        font-size: 32px;
        font-family: PingFangSC-Semibold;
        font-weight: 600;
        text-align: left;
        white-space: nowrap;
        line-height: 40px;
      }
    }
  }
  .refund_tip {
    width: 100vw;
    display: flex;
    justify-content: center;
    span {
      color: #40c17f;
    }
    .message {
      background-color: rgba(245, 245, 245, 1);
      border-radius: 10px;
      width: 92vw;
      align-self: center;
      box-sizing: border-box;
      margin-top: 37px;
      padding: 10px 10px 10px 10px;
    }
    .text_5 {
      height: 30px;
      overflow-wrap: break-word;
      color: rgba(102, 102, 102, 1);
      font-size: 12px;
      font-weight: NaN;
      text-align: left;
      line-height: 28px;
    }

    .text_6 {
      span {
        overflow-wrap: break-word;
        color: rgba(67, 192, 126, 1);
        font-size: 13px;
        font-weight: NaN;
        text-align: left;
        white-space: nowrap;
        line-height: 18px;
        // margin: 32px 0 0 -143px;
      }
    }
  }
}
</style>
